import Vue from 'vue'
import App from './App'
import fly from './net/flyio'
import url from './net/serverurl'
import globle from './constants/constants'
import wx from './utils/globalfun'
import store from './store'
import './assets/css/weui.css'
import './assets/css/base.css'
import './assets/css/css.css'
Vue.config.productionTip = false
App.mpType = 'app'

Vue.prototype.$fly = fly
Vue.prototype.$url = url
Vue.prototype.$globle = globle
Vue.prototype.$wx = wx
Vue.prototype.$eventHub= Vue.prototype.$eventHub ||  new Vue()
Vue.use({
  install(Vue, options) {
    Vue.prototype.$store = store
    // 不建议在组件内使用，推荐写在src/services目录下
    // Vue.prototype.$wx = $wx
  },
})
// const app = new Vue(App)
const app = new Vue(
  ...App)
app.$mount()
